package com.tulei.common.annotation;



import com.tulei.common.enums.DataSourceType;

import java.lang.annotation.*;

/**
 * @Author TuLei
 * @Date 2024-04-20 10:55
 **/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface DataSource
{
    /**
     * 切换数据源名称
     */
    public DataSourceType value() default DataSourceType.MASTER;
}
